package com.example.demo1104.demo3;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.Stream;

public class Test03 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"小猪","小李","马云","马化腾","王健林");

        Stream<String> stream=list.stream();

        String [] arr={"战马","冯策","刘熙"};
        Arrays.stream(arr);

        //通过stream类中的方法获取stream流对象
        Stream<String> stream1=Stream.of("马云","野猪","阿德");
    }
}
